﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTop" TagName="Top" Src="../Common/Inc/Top.ascx" %>
<%@ Register TagPrefix="ucMenu" TagName="Menu" Src="../Common/Inc/Menu.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms" TagPrefix="chartfx7" %>
<%@ Register Assembly="ChartFX.WebForms.Adornments" Namespace="ChartFX.WebForms.Adornments" TagPrefix="chartfxadornments" %>
<%@ Register Assembly="ChartFX.WebForms" Namespace="ChartFX.WebForms.Galleries" TagPrefix="chartfx7galleries" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Fit2013r.aspx.cs" Inherits="Updms.Fit.Fit2013r" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>▒ UPDMS [Fit2013r] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
<tr>
	<td id="top_area" colspan="2">
		<!-- Top 시작 -->
		<ucTop:Top id="Top" runat="server"></ucTop:Top>
		<!-- Top 끝 -->	
	</td>
</tr>
<tr>
	<td id="menu_area">
		<!-- 메뉴 시작 -->
		<ucMenu:Menu id="Menu" runat="server"></ucMenu:Menu>
		<!-- 메뉴 끝 -->	
	</td>
	<td id="contents_area">
		<!-- 제목 시작 -->
		<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Fit2013r" runat="server"></ucTabTitle:TabTitle>
		<!-- 제목 끝 -->
		<!-- AJAX 시작 -->
		<asp:UpdatePanel ID="UpdatePanel1" runat="server">
		<Triggers>
			<asp:PostBackTrigger ControlID="ibtn_excel"/>
		</Triggers>
		<ContentTemplate>
		<!-- 버튼 시작 -->
		<div class="button_area">
			<asp:linkbutton id="ibtn_excel" Text="엑셀" runat="server" CssClass="ibtn ibtn_excel" OnClick="ibtn_excel_Click"></asp:linkbutton>
			<asp:linkbutton id="ibtn_search" Text="검색" runat="server" CssClass="ibtn ibtn_search" OnClientClick="return chkSearch()" OnClick="ibtn_search_Click"></asp:linkbutton>
		</div>
		<!-- 버튼 끝 -->
		<!-- 검색 시작 -->
		<table class="table_search">
		<tr>
			<td class="lbl" width="11%"><asp:Literal id="ltr_search_pre_yyyymm" Text="전월" runat="server" /></td>
			<td class="ctl" width="22%">
				<ul class="horizontal">
					<li style="width:59%;"><asp:DropDownList id="ddl_search_pre_year" runat="server" CssClass="ddl"></asp:DropDownList></li>
					<li style="width:41%;"><asp:DropDownList id="ddl_search_pre_month" runat="server" CssClass="ddl">
						<asp:ListItem Value="01">01</asp:ListItem>
						<asp:ListItem Value="02">02</asp:ListItem>
						<asp:ListItem Value="03">03</asp:ListItem>
						<asp:ListItem Value="04">04</asp:ListItem>
						<asp:ListItem Value="05">05</asp:ListItem>
						<asp:ListItem Value="06">06</asp:ListItem>
						<asp:ListItem Value="07">07</asp:ListItem>
						<asp:ListItem Value="08">08</asp:ListItem>
						<asp:ListItem Value="09">09</asp:ListItem>
						<asp:ListItem Value="10">10</asp:ListItem>
						<asp:ListItem Value="11">11</asp:ListItem>
						<asp:ListItem Value="12">12</asp:ListItem>
					</asp:DropDownList></li>
				</ul>
			</td>
			<td class="lbl" width="11%"><asp:Literal id="ltr_search_this_yyyymm" Text="당월" runat="server" /></td>
			<td class="ctl" width="22%">
				<ul class="horizontal">
					<li style="width:59%;"><asp:DropDownList id="ddl_search_this_year" runat="server" CssClass="ddl"></asp:DropDownList></li>
					<li style="width:41%;"><asp:DropDownList id="ddl_search_this_month" runat="server" CssClass="ddl">
						<asp:ListItem Value="01">01</asp:ListItem>
						<asp:ListItem Value="02">02</asp:ListItem>
						<asp:ListItem Value="03">03</asp:ListItem>
						<asp:ListItem Value="04">04</asp:ListItem>
						<asp:ListItem Value="05">05</asp:ListItem>
						<asp:ListItem Value="06">06</asp:ListItem>
						<asp:ListItem Value="07">07</asp:ListItem>
						<asp:ListItem Value="08">08</asp:ListItem>
						<asp:ListItem Value="09">09</asp:ListItem>
						<asp:ListItem Value="10">10</asp:ListItem>
						<asp:ListItem Value="11">11</asp:ListItem>
						<asp:ListItem Value="12">12</asp:ListItem>
					</asp:DropDownList></li>
				</ul>
			</td>
			<td class="ctl" width="33%">
				<table class="control">
				<tr>
					<td style="padding:1px;"><asp:linkbutton id="ibtn_prev_month" ToolTip="전월" runat="server" OnClick="ibtn_prev_month_Click"><img src="../Common/Images/arrow_rect_left.gif" alt="전월" /></asp:linkbutton></td>
					<td style="padding:1px;"><asp:linkbutton id="ibtn_this_month" ToolTip="당월" runat="server" OnClick="ibtn_this_month_Click"><img src="../Common/Images/control_rect_stop.gif" alt="당월" /></asp:linkbutton></td>
					<td style="padding:1px;"><asp:linkbutton id="ibtn_next_month" ToolTip="차월" runat="server" OnClick="ibtn_next_month_Click"><img src="../Common/Images/arrow_rect_right.gif" alt="차월" /></asp:linkbutton></td>
				</tr>
			</table>
			</td>
		</tr>
		</table>
		<!-- 검색 끝 -->
		<table cellpadding="0" cellspacing="0" border="0" width="100%">
			<tr>
				<td>
					<!-- 리스트셋 시작 -->
					<asp:GridView ID="GridView1" CssClass="table_gridview" GridLines="None" runat="server" OnRowDataBound="GridView1_RowDataBound" AutoGenerateColumns="False" DataKeyNames="Training_Part,Training_Type_Id,View_Order">
						<Columns>	
							<asp:BoundField DataField="Training_Part" HeaderText="Training_Part(X)" Visible="False" />
							<asp:BoundField DataField="Training_Part_Nm" HeaderText="운동부위" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Center" Width="6%" />
							</asp:BoundField>
							<asp:BoundField DataField="Training_Type_Id" HeaderText="Training_Type_Id(X)" Visible="False" />
							<asp:BoundField DataField="Training_Nm" HeaderText="운동명" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Left" Width="20%" />
							</asp:BoundField>
							<asp:BoundField DataField="Weight_Pre_Total" HeaderText="전월" DataFormatString="{0:#,###,##0}" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Right" Width="7%" />
							</asp:BoundField>
							<asp:BoundField DataField="Weight_This_Total" HeaderText="당월" DataFormatString="{0:#,###,##0}" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Right" Width="7%" />
							</asp:BoundField>
							<asp:BoundField DataField="Weight_Diff_Total" HeaderText="차이" DataFormatString="{0:#,###,##0}" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Right" Width="7%" />
							</asp:BoundField>
							<asp:BoundField DataField="Weight_Remain_Day" HeaderText="달성필요일" DataFormatString="{0:#,###,##0.#}" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Right" Width="8%" />
							</asp:BoundField>
							<asp:BoundField DataField="Weight_Avg" HeaderText="달성비율" DataFormatString="{0:#,###,##0.#}%" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Right" Width="8%" />
							</asp:BoundField>
							<asp:BoundField DataField="Count_Pre_Total" HeaderText="전월" DataFormatString="{0:#,###,##0}" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Right" Width="7%" />
							</asp:BoundField>
							<asp:BoundField DataField="Count_This_Total" HeaderText="당월" DataFormatString="{0:#,###,##0}" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Right" Width="7%" />
							</asp:BoundField>
							<asp:BoundField DataField="Count_Diff_Total" HeaderText="차이" DataFormatString="{0:#,###,##0}" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Right" Width="7%" />
							</asp:BoundField>
							<asp:BoundField DataField="Count_Remain_Day" HeaderText="달성필요일" DataFormatString="{0:#,###,##0.#}" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Right" Width="8%" />
							</asp:BoundField>
							<asp:BoundField DataField="Count_Avg" HeaderText="달성비율" DataFormatString="{0:#,###,##0.#}%" HtmlEncode="False" >
								<ItemStyle HorizontalAlign="Right" Width="8%" />
							</asp:BoundField>
							<asp:BoundField DataField="View_Order" HeaderText="View_Order(X)" Visible="False" />
						</Columns>
					</asp:GridView>
					<!-- 리스트셋 끝 -->
				</td>
			</tr>
		</table>
		<!-- 카피라이트 시작 -->
		<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
		<!-- 카피라이트 끝 -->
		<!-- 히든값 시작 -->
		<div id="hdn_data">
		</div>
		<!-- 히든값 끝 -->
		</ContentTemplate>
		</asp:UpdatePanel>
		<!-- AJAX 끝 -->
	</td>
</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//검색
	function chkSearch() {
		var from_dt = $F("ddl_search_pre_year") + $F("ddl_search_pre_month");
		var to_dt = $F("ddl_search_this_year") + $F("ddl_search_this_month");

		//검색기간
		if (!isDateSeq(from_dt, to_dt) || (from_dt == to_dt)) {
			msgBox.alert(getMsg(MSG_ERR_203)); //시작일자가 종료일자보다 같거나 늦을수 없습니다
			return false;
		}

		return true;
	}
</script>
</body>
</html>